/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import com.movie.Viewer;
import java.util.List;
import com.assg2.dao.DaoMovie;
import com.assg2.dao.DaoShow;
import com.assg2.dao.DaoViewer;
import com.movie.Movie;
import com.movie.Show;
import java.text.ParseException;
import java.util.Date;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author alexnewski
 */
public class testmovie {

    public testmovie() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }
    // TODO add test methods here.
    // The methods must be annotated with annotation @Test. For example:
    //
    // @Test
    // public void hello() {}

    @Test
    public void hello() throws ParseException {
        DaoViewer dv = new DaoViewer();
        Viewer v = (Viewer) dv.findById(1);
        //v.setFirstname("Alex");
        
        //dv.update(v);
        
        assertEquals(v.getFirstname(), "Alex");

    }
}
